package projectEuler;

public class Problem_01 {
        public static void main(String[] args){
                int sum = 0;
                for(int count = 1; count < 1000; count++){
                        System.out.println(count);
                        System.out.println(count%5);
                        System.out.println(count%3);
                        System.out.println();
                        if(count%5 == 0 || count%3==0){
                                sum = sum + count;
                        }
                }
                System.out.println(sum);
        }
}